import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import PubSub from 'pubsub-js';
import { Icon } from "vant";
import axios from 'axios';
import 'font-awesome/css/font-awesome.min.css'
Vue.prototype.$http = axios;

Vue.prototype.$TwoRoute = function (path,name) {
  return {
    path,
    name,
    component: () =>
      import(/* webpackChunkName: "${name}" */ `@/views/community/${name}.vue`),
  };
};
Vue.use(Icon)

Vue.config.productionTip = false;
new Vue({
  router,
  store,
  PubSub,
  render: h => h(App)
}).$mount('#app')
